<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">
 	<h:outputStylesheet library="css" name="main.css"/>
	<h:outputStylesheet library="css" name="bootstrap.min.css"/>
	<img src="#{request.contextPath}/resources/icons/calendar.png"/>
    <p:menubar styleClass="menu">
    	<p:menuitem value="Home" url="/"/>
    	<p:submenu label="Profile">
    		<p:menuitem value="Show profile" url="/views/profile.xhtml"/>
    	</p:submenu>
    	<p:submenu label="Admin panel" rendered="#{request.isUserInRole('ROLE_ADMIN')}">
    		<p:menuitem value="Userlist" url="/views/admin/userlist.xhtml"/>
    		<p:menuitem value="Send Email" url="/views/admin/emailsender.xhtml"/>
    	</p:submenu>
    	<p:menuitem styleClass="logout-btn" value="Log Out" url="/logout"/>
    </p:menubar>
</ui:composition>